package com.abc.cloud.dao;

import com.abc.cloud.dto.notice.NoticeDto;
import com.abc.cloud.entity.NoticeEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 通知表
 * 
 * @author LiJunXi
 * @email 2770063826@qq.com
 * @date 2023-11-29 13:19:41
 */
@Mapper
public interface NoticeDao extends BaseMapper<NoticeEntity> {

    List<NoticeDto> getList(long currPage, long pageSize, long userId);

    Integer getCount(long userId);

    void updateAllRead(Short isRead,Long userId);

    Integer getNotReadCount(long userId);

    Integer getAllCount(String searchContent);

    List<NoticeEntity> getAllList(int currPage, Integer pageSize,String searchContent);

    void updateNoticeStatus(List<Long> noticeIds, Integer status);
}
